<form>
<select name="config" onchange="showConfig(this)">
	<option value="">Bitte wählen</option>
	<?php foreach($entries as $e): ?>
	<option value="config_<?=$e[0]?>"><?=$e[0]?></option>
  <?php endforeach; ?>
</select>
</form><br/>

<?php foreach($entries as $e): ?>
<div id="config_<?=$e[0]?>" class="config">
	<?=form_open('admin/saveconfig')?>
		<span><?=$e[0]?> (<?=$e[1]?>):</span><br/>
		<input type="hidden" name="config_key[]" value="<?=$e[0]?>"/>
		<input type="hidden" name="config_typ[]" value="<?=$e[1]?>"/>
		<textarea cols="80" rows="16" name="config_value[]"><?=$e[2]?></textarea>
		<br/>
		<input class="submit" type="submit" />
	<?=form_close();?>	
</div>
<?php endforeach; ?>
